const express = require('express')
const router = express.Router()
const articleService = require('services/article')

router.get('/', async (req, res, next) => {
  let article = await articleService.get(1)
  article = article.toJSON()
  res.render('home', { title: 'Hey', message: 'Hello there!' })
})

module.exports = router